package cn.gxa.j229.bug.finance.service.loanuser.impl;

import cn.gxa.j229.bug.finance.mapper.RechargeRecordMapper;
import cn.gxa.j229.bug.finance.pojo.RechargeRecord;
import cn.gxa.j229.bug.finance.service.loanuser.RechargeRecordService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * @Author: fenglin
 * @Date:2020/9/26 19:03
 * @Version 1.0
 */
@Service("RechargeRecordService")
public class RechargeRecordServiceImpl implements RechargeRecordService {
    @Resource
    RechargeRecordMapper rechargeRecordMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return 0;
    }

    @Override
    public int insert(RechargeRecord record) {
        return 0;
    }

    @Override
    public int insertSelective(RechargeRecord record) {
        return 0;
    }

    @Override
    public RechargeRecord selectByPrimaryKey(Integer id) {
        return null;
    }

    @Override
    public List<Map<String, String>> selectAll(RechargeRecord rechargeRecord) {
        rechargeRecord.setPage((rechargeRecord.getPage()-1)*rechargeRecord.getLimit());
        return rechargeRecordMapper.selectAll(rechargeRecord);
    }

    @Override
    public int selectAllCount(int page, int limit) {
        return rechargeRecordMapper.selectAllCount(page,limit);
    }

    @Override
    public List<Map<String, String>> selectDateAndPhoneRenumber(RechargeRecord rechargeRecord){
        rechargeRecord.setPage((rechargeRecord.getPage()-1)*rechargeRecord.getLimit());
        return rechargeRecordMapper.selectDateAndPhoneRenumber(rechargeRecord);
    }

    @Override
    public int selectDateAndPhoneRenumberCount(RechargeRecord rechargeRecord) {
        return rechargeRecordMapper.selectDateAndPhoneRenumberCount(rechargeRecord);
    }


    @Override
    public int updateByPrimaryKeySelective(RechargeRecord record) {
        return 0;
    }

    @Override
    public int updateByPrimaryKey(RechargeRecord record) {
        return 0;
    }
}
